﻿<Window xmlns:my="clr-namespace:WpfControlLibrary;assembly=WpfControlLibrary"  x:Class="BusinessClass.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" DragEnter="Window_DragEnter" AllowDrop="True" Loaded="Window_Loaded" ResizeMode="CanResize" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Height="737" Width="741" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="38" />
            <RowDefinition Height="30" />
            <RowDefinition Height="0" />
            <RowDefinition Height="0" />
            <RowDefinition Height="9" />
            <RowDefinition Height="0" />
            <RowDefinition Height="172" />
            <RowDefinition Height="*" />
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>
        <Button Content="生成" Height="40" HorizontalAlignment="Left" Margin="310,0,0,0" Name="button1" VerticalAlignment="Top" Width="81" Click="button1_Click" Grid.Row="8" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="6,15,0,0" Name="textBlock5" Text="当前目录" VerticalAlignment="Top" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="73,12,0,0" Name="txtSaveDir" VerticalAlignment="Top" Width="294" Text="" IsReadOnly="True" />
        <TextBlock Grid.Row="5" Height="23" HorizontalAlignment="Left" Margin="29,26,0,0" Name="textBlock8" Text="X" VerticalAlignment="Top" Visibility="Hidden" />
        <TextBox Grid.Row="5" Height="23" HorizontalAlignment="Left" Margin="52,25,0,0" Name="txtOffsetX" VerticalAlignment="Top" Width="48" Text="0" Visibility="Hidden" />
        <TextBlock Grid.Row="5" Height="23" HorizontalAlignment="Left" Margin="120,25,0,0" Name="textBlock9" Text="Y" VerticalAlignment="Top" Visibility="Hidden" />
        <TextBox Grid.Row="5" Height="23" HorizontalAlignment="Left" Margin="146,22,0,0" Name="txtOffsetY" VerticalAlignment="Top" Width="40" Text="0" Visibility="Hidden" />
        <TextBlock Grid.Row="5" Height="23" HorizontalAlignment="Left" Margin="30,2,0,0" Name="textBlock10" Text="生成的图片偏移量" VerticalAlignment="Top" Visibility="Hidden" />
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="74,5,0,0" Name="cbTemplates" VerticalAlignment="Top" Width="171" Grid.Row="1" SelectedIndex="0" SelectionChanged="cbTemplates_SelectionChanged" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="7,11,0,0" Name="textBlock7" Text="选择模板" VerticalAlignment="Top" Grid.Row="1" Grid.RowSpan="4" />
        <TextBox Grid.Row="6" Height="167" HorizontalAlignment="Left" Margin="12,5,0,0" Name="txtInfo" VerticalAlignment="Top" Width="287" />
        <TextBlock Grid.Row="7" Height="23" HorizontalAlignment="Left" Margin="269,24,0,0" Name="txtStatus" Text="" VerticalAlignment="Top" />
        <CheckBox Content="删除临时文件" Grid.Row="1" Height="16" HorizontalAlignment="Left" Margin="380,9,0,0" Name="ckDelTempFile" VerticalAlignment="Top" IsChecked="True" />
        <TextBox Grid.Row="6" Margin="310,5,0,0" Name="txtConfig" HorizontalAlignment="Left" Width="355" AcceptsReturn="True" />
        <Button Content="保存" Grid.Row="6" Height="47" HorizontalAlignment="Left" Margin="673,62,0,0" Name="btnSaveConfig" VerticalAlignment="Top" Width="29" Click="btnSaveConfig_Click" />

        <ScrollViewer Grid.Row="7"
                 VerticalScrollBarVisibility="Auto"
                >
        <my:WrapPanelChangePosition 
                Name="wPnlCutterContainer"
                Margin="5"
                />
        </ScrollViewer>
        <Button Content="编辑模板" Grid.Row="1" Height="23" HorizontalAlignment="Left" Margin="269,5,0,0" Name="button2" VerticalAlignment="Top" Width="75" Click="button2_Click" />
    </Grid>
</Window>
